System error

error:  Can't call method "nsearchredirect" on an undefined value at /home/www/html/index.html line 110.
context: 
... 
106:  my $newtemplate = (($directory) && ($directory->converted == 2)) ? 1 : 0;
107:  if ($directoryid == 0) { $notfound =1; }
108: 
109:  # Redirect sites with the nsearchredirect flag to the corresponding page on nsearch.com. Ticket #3808
110:  if (($directory->nsearchredirect()) && ($r->uri =~ /^\/(index\.(htm|html|php))?$/)) {
111:  if ((defined($ARGS{i})) && (int($ARGS{i}) > 0)) {
112:  $m->redirect('http://www.nsearch.com/?i=' . $ARGS{i}, 301);
113:  }
114:  elsif ((defined($ARGS{k})) && ($ARGS{k} ne "")) {
... 
code stack:  /home/www/html/index.html:110
raw error






























Can't call method "nsearchredirect" on an undefined value at /home/www/html/index.html line 110.


Trace begun at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "nsearchredirect" on an undefined value at /home/www/html/index.html line 110.^J') called at /home/www/html/index.html line 110
HTML::Mason::Commands::__ANON__ at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x99f110c)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1257
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1252
HTML::Mason::Request::comp(undef, undef, undef) called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 466
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 418
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9e3b1d4)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x9e3b1d4)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 826
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x8985ce8)', 'Apache=SCALAR(0x9e3af40)') called at (eval 46) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache=SCALAR(0x9e3af40)') called at /dev/null line 0
eval {...} at /dev/null line 0